package cate.game.train.hero.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import cate.game.role.bag.vo.DogCostVO;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "英雄批量升星 の 请求")
@OperationSetter(GDOperation.HERO_STAR_UP)
public class HeroBatchStarUpReq implements MsgInput {
    @NoteField(value = "批量请求列表")
    public List<DogCostVO> list;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.hero.batchStarUp(cc.getRole(), list);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.HERO_BATCH_START_UP_REQ;
    }
}
